from ronglian_sms_sdk import SmsSDK

accId = '2c94811c9035ff9f01928e13b57d764f'
accToken = '7883b3322e774dc98bfc6ad7026fe995'
appId = '2c94811c9035ff9f01928e13b7077656'

def send_message(mobile,code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = mobile
    datas = (code,)
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp

#send_message('18610982957','1212')